﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPage.master" AutoEventWireup="true" CodeFile="GioHang.aspx.cs" Inherits="GioHang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    #Select1
    {
        width: 74px;
    }
        .style26
        {
        }
        .style27
        {
            width: 165px;
        }
        .style28
        {
            height: 88px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="Panel11" runat="server" BorderColor="Blue" BorderWidth="2px">
        <table class="style24">
            <tr>
                <td style="color: #FFFF00; font-weight: bold; background-color: #008080; text-align: center;">
                    GIỎ HÀNG CỦA BẠN</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblthongbao" runat="server" Font-Bold="True" Font-Size="13pt" 
                        ForeColor="#FF0066"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" 
                        CellPadding="4" DataKeyNames="ID" Height="182px" 
                        onrowdeleting="GridView1_RowDeleting" onrowupdating="GridView1_RowUpdating" 
                        ShowFooter="True" Width="100%">
                        <Columns>
                            <asp:TemplateField HeaderText="Tên Sản Phẩm">
                                <ItemTemplate>
                                    <asp:Label ID="lblTenSP" runat="server" Text='<%# Bind("TenSanPham") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Giá Tiền">
                                <ItemTemplate>
                                    <asp:Label ID="lblGiaTien" runat="server" 
                                        Text='<%# Bind("GiaTien","{0:N0} vnđ") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Số Lượng">
                                <FooterTemplate>
                                    Tổng tiền thanh toán
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:TextBox ID="txtSoLuong" runat="server" Height="26px" 
                                        Text='<%# Bind("SoLuong") %>' Width="84px"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tổng Tiền">
                                <FooterTemplate>
                                    <asp:Label ID="lblThanhTien" runat="server">lblThanhTien</asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblTongTien" runat="server" 
                                        Text='<%# Bind("TongTien","{0:N0} vnđ") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:ButtonField CommandName="Update" Text="Sửa" />
                            <asp:ButtonField CommandName="Delete" Text="Xóa" />
                        </Columns>
                        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                        <RowStyle BackColor="White" ForeColor="#330099" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                      
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td align="center" class="style28">
                    <asp:ImageButton ID="ImageButton11" runat="server" 
                        ImageUrl="~/Img_Control/RemoveCart.png" onclick="ImageButton11_Click" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:ImageButton ID="ImageButton12" runat="server" 
                        ImageUrl="~/Img_Control/ApplyCart.png" onclick="ImageButton12_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </asp:Panel>
    <br />
    <asp:Panel ID="Panel12" runat="server" BorderColor="Blue" BorderWidth="2px" 
        Visible="False">
        <table class="style24">
            <tr>
                <td style="color: #FFFF00; font-weight: bold; background-color: #008080">
                    THÔNG TIN XÁC NHẬN ĐƠN HÀNG</td>
            </tr>
        </table>
        <table class="style24">
            <tr>
                <td class="style26" colspan="2" style="color: #FF0000; font-style: italic">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Vui lòng điền đầy đủ thông tin trước khi gửi đơn hàng.</td>
            </tr>
            <tr>
                <td class="style27">
                    Ho tên người đặt hàng</td>
                <td>
                    <asp:TextBox ID="txb_NguoiDat" runat="server" Width="202px"></asp:TextBox>
                    <asp:Label ID="lbl_1" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    Giới tính</td>
                <td>
                    <asp:DropDownList ID="drl_GioTinh" runat="server">
                        <asp:ListItem Value="1">Nam</asp:ListItem>
                        <asp:ListItem Value="0">Nữ</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    Số CMTND</td>
                <td>
                    <asp:TextBox ID="txb_CMT" runat="server" Width="200px"></asp:TextBox>
                    <asp:Label ID="lbl_2" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    Số tài khoản ngân hàng</td>
                <td>
                    <asp:TextBox ID="txb_TaiKhoan" runat="server" Width="200px"></asp:TextBox>
                    <asp:Label ID="lbl_3" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    Số điện thoại</td>
                <td>
                    <asp:TextBox ID="txb_SDT" runat="server" Width="200px"></asp:TextBox>
                    <asp:Label ID="lbl_4" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    Địa chỉ</td>
                <td>
                    <asp:TextBox ID="txb_DiaChi" runat="server" Height="67px" TextMode="MultiLine" 
                        Width="274px"></asp:TextBox>
                    <asp:Label ID="lbl_5" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    Họ tên người nhận hàng</td>
                <td>
                    <asp:TextBox ID="txb_HoTenNH" runat="server" Width="200px"></asp:TextBox>
                    <asp:Label ID="lbl_6" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    Địa chỉ nhận&nbsp; hàng</td>
                <td>
                    <asp:TextBox ID="txb_DiaChiNH" runat="server" Height="67px" 
                        style="margin-bottom: 0px" TextMode="MultiLine" Width="274px"></asp:TextBox>
                    <asp:Label ID="lbl_7" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    Email</td>
                <td>
                    <asp:TextBox ID="txb_Email" runat="server" Width="200px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txb_Email" ErrorMessage="Email không đúng" ForeColor="Red" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    Thời gian vận chuyển</td>
                <td>
                    Ngày
                    <asp:DropDownList ID="drl_Ngay" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                        <asp:ListItem>13</asp:ListItem>
                        <asp:ListItem>14</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>16</asp:ListItem>
                        <asp:ListItem>17</asp:ListItem>
                        <asp:ListItem>18</asp:ListItem>
                        <asp:ListItem>19</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                        <asp:ListItem>21</asp:ListItem>
                        <asp:ListItem>22</asp:ListItem>
                        <asp:ListItem>23</asp:ListItem>
                        <asp:ListItem>24</asp:ListItem>
                        <asp:ListItem>25</asp:ListItem>
                        <asp:ListItem>26</asp:ListItem>
                        <asp:ListItem>27</asp:ListItem>
                        <asp:ListItem>28</asp:ListItem>
                        <asp:ListItem>29</asp:ListItem>
                        <asp:ListItem>30</asp:ListItem>
                        <asp:ListItem>31</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;Tháng
                    <asp:DropDownList ID="drl_Thang" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;Năm
                    <asp:DropDownList ID="drl_Nam" runat="server">
                        <asp:ListItem>2011</asp:ListItem>
                        <asp:ListItem>2012</asp:ListItem>
                        <asp:ListItem>2013</asp:ListItem>
                        <asp:ListItem>2014</asp:ListItem>
                        <asp:ListItem>2015</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    Hình thức thanh toán</td>
                <td>
                    <asp:DropDownList ID="drl_ThanhToan" runat="server" Width="200px">
                        <asp:ListItem Value="1">Tiền mặt</asp:ListItem>
                        <asp:ListItem Value="2">Chuyển vào tài khoản công ty</asp:ListItem>
                        <asp:ListItem Value="3">Trả lúc giao hàng</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    Ghi chú</td>
                <td>
                    <asp:TextBox ID="txb_GhiChu" runat="server" Height="67px" TextMode="MultiLine" 
                        Width="274px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style27">
                    &nbsp;</td>
                <td>
                    <asp:ImageButton ID="ImageButton1" runat="server" Height="34px" 
                        ImageUrl="~/Img_Control/thanhtoan.png" onclick="ImageButton1_Click" 
                        Width="118px" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <br />
</asp:Content>

